7e9c74
@@ -32,7 +32,7 @@
import org.apache.hadoop.io.compress.SnappyCodec;
  * in a constructor are just keywords to do back mapping from a lookup table. Registering a mixing
  * abbreviations is not checked.
  * <p>
- * Codecs.get("gzip").getAbbreviation(); "GZIP"
+ * Codecs.get("gz").getAbbreviation(); "GZIP"
  * <p>
  *
  * @author Janne Valkealahti
@@ -43,7 +43,7 @@
public enum Codecs {
 	/**
 	 * Non-splittable {@link GzipCodec}.
 	 */
-	GZIP(new DefaultCodecInfo(GzipCodec.class.getName(), false, "gzip"), "GZIP"),
+	GZIP(new DefaultCodecInfo(GzipCodec.class.getName(), false, "gz"), "GZIP"),
 
 	/**
 	 * Non-splittable {@link SnappyCodec}. This codec will need native snappy libraries.
@@ -53,7 +53,7 @@
public enum Codecs {
 	/**
 	 * Splittable {@link BZip2Codec}.
 	 */
-	BZIP2(new DefaultCodecInfo(BZip2Codec.class.getName(), true, "bzip2"), "BZIP2"),
+	BZIP2(new DefaultCodecInfo(BZip2Codec.class.getName(), true, "bz2"), "BZIP2"),
 
 	// TODO: should we do like DelegatingLzoCodecInfo for resolving
 	// these at runtime. Anyway only one can be present
